﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using nelech.Models;
using nelech.Models.DBModel;

namespace nelech.Controllers
{
    public partial class PlaceController : Controller
    {
        public static void LoadPlaceRelations(Place place)
        {
            place.Regeon1Reference.Load();
            place.Cost1Reference.Load();
            place.Type.Load();
            place.Image.Load();
            place.Subject.Load();
            place.Season.Load();
        }

        public static void LoadSpringRelations(Maayan spring)
        {
            spring.Regeon1Reference.Load();
            spring.Cost1Reference.Load();
            spring.Nevia1Reference.Load();
            spring.Image.Load();
            spring.Season.Load();
            spring.Subject.Load();
        }

    }
}
